Release 10.1A: OpenEdge Development:
Java Open Clients
SDOResultSet exceptions
All SDOResultSet and SDOResultSetMetaData methods throw
com.progress.open4gl.ProSQLException, which is the root of more specific exceptions. Table 9–8 shows the full exception hierarchy. Indentation in the table indicates the level of the hierarchy.
Two exceptions from this hierarchy allow you to handle normal program conditions:
DeletedRowAccessException— This exception is thrown when there is an attempt to access a deleted row. To prevent it, the application can use theboolean rowDeleted()method before trying to access a row.SDOModificationException— This exception is thrown when the back-end SmartDataObject fails to insert a new row, update an existing row, or delete an existing row. If the row operation is one of many in a larger transaction, each update, insert, or delete failure causes a message to be added to a list of messages held by the thrownSDOModificationException.You can access all the error information provided by
SDOModificationExceptionusing the following methods.The following method returns the list of fields (if any) related to this error message:
The following method returns the name of the table (if any) related to this error message:
The following method returns the text of the current error message:
The following method positions the cursor on the next error message:
For more information on the
SDOModificationExceptionclass and its methods, see theSDOModificationException.htmlfile inOpenEdge-install-directory\java\doc\.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |